package third;

public class YearWorker extends Employee{
    double yearMoney;

    public YearWorker(double yearMoney) {
        this.yearMoney = yearMoney;
    }

    public double earnings() {
        return yearMoney;
    }

    public double getYearMoney() {
        return yearMoney;
    }

    public void setYearMoney(double yearMoney) {
        this.yearMoney = yearMoney;}
}
